package com.example.interceptor.custom_method_interceptor.interceptor;

import lombok.extern.slf4j.Slf4j;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @Description 拦截器
 * @Author lihw
 * @Date 2023/12/5 10:30
 */
@Slf4j
public class CustomInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        log.info("具体拦截器执行逻辑");
        return invocation.proceed();
    }

}

